Skip to content

RSDK-14030 - update to cpp-sdk v37#16

Merged
nfranczak merged 4 commits into
mainfrom
20260527-sdk-bump
May 28, 2026
Merged

RSDK-14030 - update to cpp-sdk v37#16
nfranczak merged 4 commits into
mainfrom
20260527-sdk-bump

Conversation

@nfranczak
Copy link
Copy Markdown
Contributor

all this so that when we start using the work here: viamrobotics/viam-cpp-sdk#645
the next git diff is smaller.

…nsors to construct a jacobian the git diff for that work will be smaller
@nfranczak nfranczak requested a review from acmorrow May 27, 2026 19:40
@nfranczak
Copy link
Copy Markdown
Contributor Author

I will also have to update the yaskawa driver to be on the newer versions of the cpp-sdk so that we can actually construct a model table, but that is another body of work

@nfranczak nfranczak changed the title update to cpp-sdk v37 RSDK-14030 - update to cpp-sdk v37 May 27, 2026
Copy link
Copy Markdown
Collaborator

@acmorrow acmorrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good, a few small things to address.

We are going to need to do the same work in UR before we can upgrade UR to a version of trajex that contains this change, since otherwise the FetchContent stuff is going to end up pulling a newer version of the C++ SDK transitively through trajex than UR is prepared to handle. Do we have a ticket to do that work?

Comment thread src/viam/trajex/service/mlmodel.cpp Outdated
mlmodel::mlmodel(vsdk::Dependencies deps, vsdk::ResourceConfig config) : MLModelService(config.name()) {
reconfigure(deps, config);
}
mlmodel::mlmodel(vsdk::Dependencies /*deps*/, vsdk::ResourceConfig config) : MLModelService(config.name()), config_(parse_config(config)) {}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the commented out parameter name, anon is fine.

Comment thread src/viam/trajex/service/mlmodel.hpp
Comment thread src/viam/trajex/service/mlmodel.hpp Outdated

mutable std::shared_mutex config_mutex_;
config config_;
static config parse_config(const ::viam::sdk::ResourceConfig& cfg);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can live as a static function on config itself. Just call it create or from_resource_config or similar.

Or if you want/need to keep it on class mlmodel for some reason, it should have a trailing _ since it is a private method.

Comment thread CMakeLists.txt
set(VIAM_TRAJEX_EIGEN3_VERSION_MINIMUM "") # TODO: Decide this
set(VIAM_TRAJEX_JSONCPP_VERSION_MINIMUM "") # TODO: Decide this
set(VIAM_TRAJEX_VIAMCPPSDK_VERSION_MINIMUM 0.31.0)
set(VIAM_TRAJEX_VIAMCPPSDK_VERSION_MINIMUM 0.37.0)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a careful look for where else this is specified. I think at least the conan file. Dockerfile?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've updated the conan file, but there is no Dockerfile in this repo.

@nfranczak
Copy link
Copy Markdown
Contributor Author

We are going to need to do the same work in UR before we can upgrade UR to a version of trajex that contains this change, since otherwise the FetchContent stuff is going to end up pulling a newer version of the C++ SDK transitively through trajex than UR is prepared to handle. Do we have a ticket to do that work?

Yes.
https://viam.atlassian.net/browse/RSDK-14032

@nfranczak nfranczak requested a review from acmorrow May 28, 2026 15:10
Copy link
Copy Markdown
Collaborator

@acmorrow acmorrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. You are right about the docker file, that only exists in UR not in this repo. When you do the UR ticket you will need to update the docker file, IIRC.

@nfranczak nfranczak merged commit 75fac4f into main May 28, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants